<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户信息添加</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }
        #main {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            width: 400px;
        }
        form {
            display: flex;
            flex-direction: column;
        }
        form > div {
            margin-top: 10px;
            display: flex;
            align-items: center;
        }
        .form-label {
            margin-right: 10px;
            width: 60px;
            text-align: right;
        }
        .form-input {
            padding: 8px;
            width: 150px;
            box-sizing: border-box;
        }
        .form-button {
            padding: 10px 20px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            margin-top: 10px;
        }
        .form-button:hover {
            background-color: #45a049;
        }
    </style>
</head>
<body>
    <div id="main">
        <form id="userInfoForm">
            <div>
                <label for="addressInput" class="form-label">地址:</label>
                <input type="text" id="addressInput" class="form-input">
            </div>
            <div>
                <label for="nameInput" class="form-label">名字:</label>
                <input type="text" id="nameInput" class="form-input">
            </div>
            <div>
                <label for="qqInput" class="form-label">QQ:</label>
                <input type="text" id="qqInput" class="form-input">
            </div>
            <div>
                <label for="emailInput" class="form-label">Email:</label>
                <input type="text" id="emailInput" class="form-input">
            </div>
            <div>
                <label for="otherInput" class="form-label">其他:</label>
                <input type="text" id="otherInput" class="form-input">
            </div>
            <div>
                <label for="snInput" class="form-label">SN:</label>
                <input type="text" id="snInput" class="form-input">
            </div>
            <div>
                <label for="pswdInput" class="form-label">密码:</label>
                <input type="password" id="pswdInput" class="form-input">
            </div>
            <div>
                <input type="button" value="确认添加" id="addButton" class="form-button">
            </div>
        </form>
    </div>

    <script>
        document.getElementById('addButton').addEventListener('click', addUser);

        function addUser() {
            const addressInput = document.getElementById("addressInput");
            const nameInput = document.getElementById("nameInput");
            const qqInput = document.getElementById("qqInput");
            const emailInput = document.getElementById("emailInput");
            const otherInput = document.getElementById("otherInput");
            const snInput = document.getElementById("snInput");
            const pswdInput = document.getElementById("pswdInput");

            

            alert("用户信息添加成功！");
        }
    </script>
</body>
</html>